<template>
  <view>
    <u-tabbar v-model="current" :list="list"></u-tabbar>
  </view>
</template>

<script>
export default {
  name: "j-tabbar",
  props: {},
  data() {
    return {
      list: [{
        iconPath: "home",
        selectedIconPath: "home-fill",
        text: '捷印',
        customIcon: false,
        pagePath: "/pages/index/index"
      },{
          iconPath: "file-text",
          selectedIconPath: "file-text-fill",
          text: '文件',
          customIcon: false,
          pagePath: "/pages/file/file"
        },{
          iconPath: "chat",
          selectedIconPath: "chat-fill",
          text: '消息',
          customIcon: false,
		  count: 23,
          pagePath: "/pages/message/message"
        },
        {
          iconPath: "account",
          selectedIconPath: "account-fill",
          text: '我的',
          customIcon: false,
          pagePath: "/pages/user/user"
        },
      ],
      current: 0,
    }
  },
  methods: {
    /*tabBarChange(index){
      if(this.list[index].text === "发布"){
        this.showPopup = !this.showPopup
      }
    }*/
  },
  computed:{
/*    tabBarList(){
      return this.showPopup ? [this.list[1]] : this.list;
    }*/
  },
  created(){
    //隐藏原生tabbar
    uni.hideTabBar()
  }
}
</script>

<style scoped>

</style>
